package ptij.verifier.test.grammar;

import ptolemy.actor.*;
import ptolemy.kernel.*;
import ptolemy.kernel.util.*;

// Teste de if
public class If1 extends AtomicActor {

   public If1(CompositeEntity container, String name) throws
           NameDuplicationException, IllegalActionException {
       super(container, name);
   }
   
   public void fire() throws IllegalActionException {
   
       int a = 1;
       if(a > 10) {
           System.out.println("verdade");
       }
       else {
           System.out.println("mentira");
       }
       a = 2;

       if(a > 3) {
           a = 4;
       }

       if(a < 32) {
       
       }
       else {
          int b = a + 1;
       }
       
       if(a > 22);

       if(a == 33) {
           return;
       }

       if(a == 10) {
          a = 3;
       }
       else {
           return;
       }

       a = 30;
       
       if(a < 239 && a > 23) {
           return;
       }
       else {
           return;
       }

   }
       
       
}
